package com.ktjiaotu.action.action02;

import java.lang.reflect.Proxy;

/**
 * @Author: DABINGCHNEGJIAO
 * @CreateTime: 2025-06-06
 * @Description:
 * @Version: 1.0
 */
public class ValidationProxy {
    public static Object newInstance(Object target) {
        return Proxy.newProxyInstance(
                target.getClass().getClassLoader(),
                target.getClass().getInterfaces(), new ValidationInvocationHandler(target)
        );
    }
}
